import React from "react";
import UserCard from "../../component/user-card/user-card";
import {connect} from "react-redux";
import {getChatList} from "../../redux/chatUser.redux";

@connect(
  state => state,
  {getChatList}
)
class Genius extends React.Component {

  componentDidMount () {
    this.props.getChatList("boss");
  }

  render () {
    return <UserCard userList={this.props.chatUser.chatUserList}/>;
  }
}

export default Genius;